home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1994 #2 / Monster Media No. 2 (Monster Media)(1994).ISO / lan / fsl141.zip / INSTALL.BAT < prev    next >
DOS Batch File  |  1994-06-01  |  7KB  |  153 lines

  1.     @echo off
  2.     cls
  3. echo\
  4. echo            ╒══════════════════════════════════════════════════════════════╕
  5. echo            │ INSTALL.BAT                                     FSLOGIN 1.41 │
  6. echo            │                                                              │
  7. echo            │ This batch file installs Full Screen Login on a server.      │
  8. echo            │                                                              │
  9. echo            │ Please be sure that you have SUPERVISOR or EQUIVALENT rights │
  10. echo            │ because files must be copied to the SYS:LOGIN and the SYS:   │
  11. echo            │ PUBLIC directories.                                          │
  12. echo            │                                                              │
  13. echo            │ Continue?  'Y'es or 'N'o.                                    │
  14. echo            ╘══════════════════════════════════════════════════════════════╛
  15. echo\
  16.     yesno
  17.     if errorlevel 1 goto check_source
  18.     goto end
  19. ::
  20. :check_source
  21. ::
  22.     if exist install.bat goto check_target
  23.     cls
  24. echo\
  25. echo            ╒══════════════════════════════════════════════════════════════╕
  26. echo            │ HELP_1                                                  1.41 │
  27. echo            │                                                              │
  28. echo            │ This batch file should be run from the same drive and        │
  29. echo            │ directory, where the other files of the FSLOGIN package      │
  30. echo            │ reside.                                                      │
  31. echo            │ Please change the current drive and directory first.         │
  32. echo            │                                                              │
  33. echo            ╘══════════════════════════════════════════════════════════════╛
  34. echo\
  35.     pause
  36.     goto end
  37. ::
  38. :check_target
  39. ::
  40.     if NOT exist sys:login\fslogin.* goto select
  41.     cls
  42. echo\
  43. echo            ╒══════════════════════════════════════════════════════════════╕
  44. echo            │ HELP_2                                                  1.41 │
  45. echo            │                                                              │
  46. echo            │ Full Screen Login is already installed on this server.       │
  47. echo            │ Do you want to write over the currently installed version?   │
  48. echo            │                                                              │
  49. echo            │ Continue?  'Y'es or 'N'o.                                    │
  50. echo            ╘══════════════════════════════════════════════════════════════╛
  51. echo\
  52.     yesno
  53.     if errorlevel 1 goto write_over
  54.     goto end
  55. ::
  56. :write_over
  57. ::
  58.     flag  sys:login\fslogin.* rw
  59.     flag  sys:public\fslogin.com rw
  60. ::
  61. :select
  62. ::
  63.     cls
  64. echo\
  65. echo            ╒══════════════════════════════════════════════════════════════╕
  66. echo            │ HELP_3                                                  1.41 │
  67. echo            │                                                              │
  68. echo            │ Full Screen Login has support for English, Dutch and German  │
  69. echo            │ Please answer 'Y'es to ONE of the following questions.       │
  70. echo            │                                                              │
  71. echo            ╘══════════════════════════════════════════════════════════════╛
  72. echo\
  73. echo            ╒══════════════════════════════════════════════════════════════╕
  74. echo            │ Do you want to install the English version?                  │
  75. echo            │                                                              │
  76. echo            │ Continue?  'Y'es or 'N'o.                                    │
  77. echo            ╘══════════════════════════════════════════════════════════════╛
  78. echo\
  79.     yesno
  80.     if errorlevel 1 goto english
  81. cls
  82. echo\
  83. echo            ╒══════════════════════════════════════════════════════════════╕
  84. echo            │ Do you want to install the Dutch version?                    │
  85. echo            │                                                              │
  86. echo            │ Continue?  'Y'es or 'N'o.                                    │
  87. echo            ╘══════════════════════════════════════════════════════════════╛
  88.     yesno
  89.     if errorlevel 1 goto dutch
  90. cls
  91. echo\
  92. echo            ╒══════════════════════════════════════════════════════════════╕
  93. echo            │ Do you want to install the German version?                   │
  94. echo            │                                                              │
  95. echo            │ Continue?  'Y'es or 'N'o.                                    │
  96. echo            ╘══════════════════════════════════════════════════════════════╛
  97.     yesno
  98.     if errorlevel 1 goto german
  99.     goto end
  100. ::
  101. :english
  102. ::
  103.     cls
  104.     copy  US.* fslogin.*
  105.     goto generic
  106. ::
  107. :dutch
  108. ::
  109.     cls
  110.     copy  NL.* fslogin.*
  111.     goto generic
  112. ::
  113. :german
  114. ::
  115.     cls
  116.     copy  DE.* fslogin.*
  117.     goto generic
  118. ::
  119. :generic
  120. ::
  121.     ncopy fslogin.*   sys:login
  122.     ncopy fslogin.com sys:public
  123.     flag  sys:login\fslogin.* ro s
  124.     flag  sys:login\fslogin.ini rw s
  125.     flag  sys:public\fslogin.com ro s
  126.     pause
  127.     cls
  128. echo\
  129. echo            ╒══════════════════════════════════════════════════════════════╕
  130. echo            │ HELP_4                                                  1.41 │
  131. echo            │                                                              │
  132. echo            │ When there are no error messages from the ncopy and flag     │
  133. echo            │ commands, Full Screen Login has been installed.              │
  134. echo            │                                                              │
  135. echo            │ Just type FSLOGIN at the dos prompt to use this program, or  │
  136. echo            │ refer to the documentation for further instructions.         │
  137. echo            │                                                              │
  138. echo            │                     ┌─────────┐                              │
  139. echo            │               ┌─────┴───┐     │              (R)             │
  140. echo            │             ──│         │o    │──────────────────            │
  141. echo            │               │   ┌─────┴╨──┐ │  Association of              │
  142. echo            │               │   │         │─┘  Shareware                   │
  143. echo            │               └───│    o    │    Professionals               │
  144. echo            │             ──────│    ║    │────────────────────            │
  145. echo            │                   └────╨────┘    MEMBER                      │
  146. echo            ╘══════════════════════════════════════════════════════════════╛
  147. echo\
  148.     pause
  149.     goto end
  150. ::
  151. :end
  152. ::
  153.